import request from "@/utils/request";
//条件查询加分页
export const listNoticeForPage = (data) => {
    return request({
        url: "/system/api/notice/findNoticeByCond",
        method: "POST",
        data
    })
}

// 查询所有可用通知和公告
export function getNoticeList() {
    return request({
        url: '/system/api/notice/selectAllNotice',
        method: 'get'
    })
}
export function addNotice(data) {
    return request({
        url: '/system/api/notice/addNotice',
        method: 'post',
        params: data
    })
}
export function updateNotice(data) {
    return request({
        url: '/system/api/notice/updateNotice',
        method: 'post',
        data
    })
}
// 查询一个
export function getNoticeById(id) {
    return request({
        url: `/system/api/notice/getNoticeByNoticeId/${id}`,
        method: 'post'
    })
}
// 删除
export function deleteNoticeByIds(ids) {
    return request({
        url: `/system/api/notice/deleteNoticeByNoticeIds/${ids}`,
        method: 'delete'
    })
}